From: Ian Campbell Date: Mon, 21 Jan 2013 12:40:26 +0000 (+0000) Subject: xen: arm: introduce concept of modules which can be in RAM at start of day X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7397 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=361261976fb173af65a366fc5540311eb5b1a855;p=xen.git xen: arm: introduce concept of modules which can be in RAM at start of day The intention is that these will eventually be filled in with information from the bootloader, perhaps via a DTB binding. Allow for 2 modules (kernel and initrd), plus a third pseudo-module which is the hypervisor itself. Currently we neither parse nor do anything with them. Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini Committed-by: Ian Campbell --- diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h index a0e3a97922..52ef258584 100644 --- a/xen/include/xen/device_tree.h +++ b/xen/include/xen/device_tree.h @@ -15,6 +15,7 @@ #define DEVICE_TREE_MAX_DEPTH 16 #define NR_MEM_BANKS 8 +#define NR_MODULES 2 struct membank { paddr_t start; @@ -33,9 +34,22 @@ struct dt_gic_info { paddr_t gic_vcpu_addr; }; +struct dt_mb_module { + paddr_t start; + paddr_t size; + char cmdline[1024]; +}; + +struct dt_module_info { + int nr_mods; + /* Module 0 is Xen itself, followed by the provided modules-proper */ + struct dt_mb_module module[NR_MODULES + 1]; +}; + struct dt_early_info { struct dt_mem_info mem; struct dt_gic_info gic; + struct dt_module_info modules; }; typedef int (*device_tree_node_func)(const void *fdt,